// 从 ES6 模块中导入模块
const TorrentInfoParser = {
};

(async () => {
    const { magnetDecode } = await import("@ctrl/magnet-link");
    const { info, hash, files } = await import("@ctrl/torrent-file");
    
    
    TorrentInfoParser.magnetLinkInfo = magnetDecode;
    TorrentInfoParser.torrentFileInfo = info;
    TorrentInfoParser.torrentFileHash = hash;
    TorrentInfoParser.torrentFileFiles = files;

})();

module.exports = TorrentInfoParser;


